package nobu.nakata.nfcfare.table;

import java.io.Serializable;

import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

 

@PersistenceCapable(detachable="true")
public class TrainStation implements Serializable, ILongKeyEntity {
	@PrimaryKey
	private Long trainCode;
	@Persistent
	private String statinName;
	
	
	public TrainStation(Long trainCode, String stationName) {
		this.trainCode				= trainCode;
		this.statinName				= stationName;
	}
	
	public Long getKey() { return trainCode; }
	public Long getTrainCode() { return trainCode; }
	public String getStationName() { return statinName; }
	/**
	 * 
	 */
	public static final String KIND = TrainStation.class.getSimpleName();
	
	private static final long serialVersionUID = 1903484095092110621L;
}
